package com.woniu.dating.mapper;

import com.woniu.dating.pojo.DatingGame;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.dating.vo.RecommendVO;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 玖柒
 * @since 2023-05-20
 */
public interface DatingGameMapper extends BaseMapper<DatingGame> {

    /**
     * 查询用户游戏记录
     * @param userId
     * @return
     */
    @Select("select id, user_id, gender from t_dating_game where user_id = #{userId}")
    @ResultType(DatingGame.class)
    DatingGame getDatingGame(Integer userId);



}
